package com.demo.project_template.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.demo.project_template.entity.UnlockWechat;
import com.demo.project_template.service.UnlockWechatService;
import com.demo.project_template.vo.response.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 解锁微信记录表 前端控制器
 * </p>
 *
 * @author 杨玉龙
 * @since 2024-08-20 11:48:57
 */
@Api(tags = "解锁微信记录表")
@RestController
@RequestMapping("/unlockWechat")
public class UnlockWechatController {
    @Resource
    private UnlockWechatService unlockWechatService;


    @ApiOperation(value = "解锁女用户微信")
    @PostMapping(value = "/add")
    public R<?> unlockWechat(UnlockWechat unlockWechat){
        unlockWechatService.unlock(unlockWechat);
        return R.success();
    }
}
